/*
 * @Description: main.ts
 * @Author: Chenx
 * @Date: 2023-04-11 15:48:19
 * @LastEditors: Chenx
 * @LastEditTime: 2023-04-24 16:36:20
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import '@/router/permission'
import pinia from './store'
import i18n from './locales'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import './assets/style/element-variables.scss'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import zhTw from 'element-plus/es/locale/lang/zh-tw'
import en from 'element-plus/es/locale/lang/en'
const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(i18n)
app.use(ElementPlus, {
  locale: getLanguage() === 'tc' ? zhTw : getLanguage() === 'sc' ? zhCn : en
})
app.mount('#app')
